//新写的api放在这个文件中
/**
 * 获取物流公司列表
 */	
export const getMailCompany = () => uni.$uv.http.get('/api/leadingMarket/afterSales/mailCompany')

/**
 * 代理商收费详情
 */
export const detailFeeStandards = () => uni.$uv.http.get('/api/agentProfile/detailFeeStandards')

/**
 * 设置代理商收费标准
 */
export const setFeeStandards = (params) => uni.$uv.http.post('/api/agentProfile/setFeeStandards', params)

//代理商小区列表
export const agentCommunityList = (params) => uni.$uv.http.post('/api/agentProfile/communityList', params)
//代理商用户列表
export const agentUserList = (params) => uni.$uv.http.post('/api/agentProfile/userList', params)
//代理商管家列表
export const agentbutlerList = (params) => uni.$uv.http.post('/api/agentProfile/butlerList', params)


/**
 * 技工订单列表
 */
export const technicianOrderList = (params) => uni.$uv.http.get('/api/technicianProfile/getOrderList', {params})


/**
 * 取用户分享信息
 */
export const getShareInfo = () => uni.$uv.http.get('/api/settings/getShareInfo')

/**
 * 取直推用户
 */
export const getDirectlyInvitePeople = () => uni.$uv.http.get('/api/trainingRegistration/getDirectlyInvitePeople')


/**
 * 培训报名
 */
export const trainingRegistrationAdd = (params) => uni.$uv.http.post('/api/trainingRegistration/add', params)

/**
 * 联创合伙人
 */
export const applyVenturePartnerAdd = (params) => uni.$uv.http.post('/api/trainingRegistration/applyVenturePartner', params)

/**
 * 添加社区长
 */
export const communityLeaderAdd = (params) => uni.$uv.http.post('/api/communityLeader/add', params)
                                                              
/**
 * 社区长入驻详情
 */
export const communityLeaderDetail = () => uni.$uv.http.get('/api/communityLeader/detail')


/**
 * 技工待办订单
 */
export const technicianWaitOrderList = (params) => uni.$uv.http.get('/api/technicianProfile/getOrderList', {params})


/**
 * 技工
 */

//技工订单列表
export const technicianProfileOrderList = (params) => uni.$uv.http.get('/api/technicianProfile/toDoList', {params})
//技工是否接单
export const technicianAcceptOrReject = (params) => uni.$uv.http.post('/api/technicianProfile/acceptOrReject', params)
//技工订单详情
export const toDoOrderDetail = (params) => uni.$uv.http.get('/api/technicianProfile/toDoOrderDetail/'+ params.id)
//技工确认新任务
export const technicianConfirmNewTask = (params) => uni.$uv.http.post('/api/technicianProfile/confirmNewTask', params)
//技工确认完成任务
export const technicianCompleteTheService = (params) => uni.$uv.http.post('/api/technicianProfile/completeTheService', params)
//技工收益列表
export const technicianProfileIncomeList = (params) => uni.$uv.http.get('/api/technicianProfile/income', {params})
//技工提现申请
export const technicianWithdrawal = (params) => uni.$uv.http.post('/api/technicianProfile/withdrawal', params)
//技工提现列表
export const technicianWithdrawalList = (params) => uni.$uv.http.get('/api/technicianProfile/withdrawalList', {params})
//确认上报位置
export const technicianConfirmReportLocation = (params) => uni.$uv.http.post('/api/technicianProfile/reportLocation', params)
//代理商首页数据
export const agentProfileData = (params) => uni.$uv.http.get('/api/agentProfile/index', {params})

/**
 * 管家
 */

//技师列表
export const managerTechnicianList = (params) => uni.$uv.http.get('/api/managerProfile/getTechnicianList', params)
//技师详情
export const managerTechnicianDetail = (params) => uni.$uv.http.get('/api/managerProfile/getTechnicianDetail/'+ params.id)
//编辑技师
export const editTechnician = (params) => uni.$uv.http.post('/api/managerProfile/editTechnician/'+ params.id,params)


/**
 * 管家菜单
 */


//首页菜单列表
export const getHomeMenuList = () => uni.$uv.http.get('/api/managerProfile/getHomeMenu')
//编辑首页菜单
export const setHomeMenu = (params) => uni.$uv.http.post('/api/managerProfile/setHomeMenu',params)
//添加首页排除的菜单
export const addHomeExcludeMenu = (params) => uni.$uv.http.post('/api/managerProfile/addHomeExcludeMenu',params)
//首页排除的菜单
export const getHomeExcludeMenu = () => uni.$uv.http.get('/api/managerProfile/getHomeExcludeMenu')

//邻集市菜单列表
export const getMarketMenuList = () => uni.$uv.http.get('/api/managerProfile/getMarketMenu')
//编辑邻集市菜单
export const setMarketMenu = (params) => uni.$uv.http.post('/api/managerProfile/setMarketMenu',params)
//添加邻集市排除的菜单
export const addMarketExcludeMen = (params) => uni.$uv.http.post('/api/managerProfile/addMarketExcludeMen',params)
//邻集市排除的菜单
export const getMarketExcludeMenu = () => uni.$uv.http.get('/api/managerProfile/getMarketExcludeMenu')

/**
 * 用户设置
 */

//实人认证
export const realNameAuthentication = (params) => uni.$uv.http.post('/api/settings/realNameAuthentication',params)
//实人认证详情
export const getRealNameAuthentication = () => uni.$uv.http.get('/api/settings/getRealNameAuthentication')


/**
 * 分享
 */
export const getWxJsConfig = (params) => uni.$uv.http.get('/api/wechat/jsconfig', {params})

